package com.tchintech.pay.delegate;

import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;

import com.tchintech.pay.R;
import com.tchintech.pay.frame.view.AppDelegate;

import butterknife.Bind;

/**
 * Created by Administrator on 2017/7/8 0008.
 */

public class PasswordManageDelegate extends AppDelegate {
    @Bind(R.id.update_ed_oldpassword)
    EditText updateEdOldpassword;
    @Bind(R.id.update_ed_newpassword)
    EditText updateEdNewpassword;
    @Bind(R.id.update_ed_confirmPassword)
    EditText updateEdConfirmPassword;
    @Bind(R.id.update_ed_verificationcode)
    EditText updateEdVerificationcode;
    @Bind(R.id.update_bt_send_verification_code)
    Button updateBtSendVerificationcode;
    @Bind(R.id.update_bt_updatePassword)
    Button updateBtUpdatePassword;
    @Bind(R.id.update_tv_phoneNumber)
    TextView updateTvPhoneNumber;
    @Bind(R.id.update_tv_tips)
    TextView updateTvTips;

    @Override
    public int getRootLayoutId() {
        return R.layout.activity_password;
    }

    public TextView getTexts(int id){
        TextView tv=null;
        tv=get(id);
        return tv;
    }
    public String getString(int id){
        String str="";
        EditText   et=get(id);
        str=et.getText().toString().trim();
        return str;
    }

    public void setTexts(String str){
        updateTvTips.setText(str);
    }

}
